<?php
    $this->breadcrumbs=array(
        UserModule::t("Users"),
    );
?>

<?php if(UserModule::isAdmin()): ?>
	<div class="actions">
		<?php echo CHtml::link(UserModule::t('Manage User'),array('/user/admin'), array('class' => 'btn btn-small btn-success')); ?></li>
		<?php echo CHtml::link(UserModule::t('Manage Profile Field'),array('profileField/admin'), array('class' => 'btn btn-small btn-success')); ?></li>
	</div><!-- actions -->
<?php endif ?>

<?php $this->widget('bootstrap.widgets.TbGridView', array(
	'dataProvider'=>$dataProvider,
    'type'=>'striped bordered condensed',
	'columns'=>array(
        array(
            'name'  => 'id',
            'value' => '$data->id'
        ),
		array(
			'name' => 'username',
			'type'=>'raw',
			'value' => 'CHtml::link(CHtml::encode($data->username),array("user/view","id"=>$data->id))',
		),
		array(
			'name' => 'createtime',
			'value' => 'date("d/m/Y H:i",$data->createtime)',
		),
		array(
			'name' => 'lastvisit',
			'value' => '(($data->lastvisit)?date("d/m/Y H:i",$data->lastvisit):UserModule::t("--"))',
		),
	),
)); ?>
